package design.mode.decorator;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;

/**
 * /**
 *
 * @author ZhongMingde on 2021/11/24
 */

public class Main {

  public static void main(String[] args) {
    List<String> list = new ArrayList<>();
    Collections.unmodifiableCollection(list);
    Collections.checkedCollection(list, String.class);
    Collections.synchronizedCollection(list);
    Enumeration<String> enumeration = Collections.enumeration(list);
    enumeration.hasMoreElements();
  }

}
